ifeq ($(OS),Darwin)
CRYPT :=
UUID :=
+INSTALL_PATH := /usr/local
else
CRYPT := -lcrypt
UUID := -luuid
+INSTALL_PATH := /usr
endif
# Add inputs and outputs from these tool invocations to the build variables
make
```
+Install
+```
+sudo make install
+```
+
#### OSX
>Make sure [libcleri](https://github.com/transceptor-technology/libcleri) is installed!
make
```
+Install
+```
+sudo make install
+```
+
#### Configuration
SiriDB requires a configuration file to run. By default SiriDB will search for the configuration file in `/etc/siridb/siridb.conf` but alternatively you can specify a custom path by using the `-c/--config` argument.
ifeq ($(OS),Darwin)
CRYPT :=
UUID :=
+INSTALL_PATH := /usr/local
else
CRYPT := -lcrypt
UUID := -luuid
+INSTALL_PATH := /usr
endif
# Add inputs and outputs from these tool invocations to the build variables
--- /dev/null
+.PHONY: install
+install:
+ @mkdir -p /etc/siridb/
+ @mkdir -p /var/lib/siridb/
+ @cp -n ../siridb.conf /etc/siridb/siridb.conf
+ @cp siridb-server $(INSTALL_PATH)/bin/siridb-server
+
+
+.PHONY: uninstall
+uninstall:
+ @rm -f $(INSTALL_PATH)/bin/siridb-server